package org.springframework.webmvc.test;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/8/17 18:43
 * @since JDK 1.8
 */
public class WebApplicationContainer extends AbstractAnnotationConfigDispatcherServletInitializer
{
	@Override
	protected Class<?>[] getRootConfigClasses()
	{
		return new Class<?>[]{SpringContainer.class};
	}

	@Override
	protected Class<?>[] getServletConfigClasses()
	{
		return new Class<?>[]{MvcContainer.class};
	}

	@Override
	protected String[] getServletMappings()
	{
		return new String[]{"/"};
	}
}
